package com.homework.ch01;

public class Test {

    public static void main(String[] args) throws CloneNotSupportedException{
        Person person1=new Person("zhangsan",19);
        Person person2=(Person)person1.clone();
        System.out.println(person1);
        System.out.println(person2);
        person1.name="lisi";
        person2.age=10;
        System.out.println(person1);
        System.out.println(person2);
        person1.m.money=15.5;
        System.out.println(person1.m.money);
        System.out.println(person2.m.money);
        person2.m.money=15.3;
        System.out.println(person1.m.money);
        System.out.println(person2.m.money);
        System.out.println(person1.m.a.num);
        System.out.println(person2.m.a.num);
        person2.m.a.num=12;
        System.out.println(person1.m.a.num);
        System.out.println(person2.m.a.num);
        System.out.println(person1.getClass().getName());
        //System.out.println(3.5==3);
    }

}
